<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		/*var n = 1;//定义的变量
		while (n <= 3)//条件表达式 
		{
			alert(n++); //更新表达式
		}
		alert('哈哈哈哈哈');*/

		/*var n = 1;
		while (n <= 10) {
			document.write(n++ + "<br>");
		}*/

		/*var score = '';
		while (score==null||score==""||score < 1 && score > 100) 
		{
			var score = prompt("请输入你的成绩(1~100)");
		}
		
		
		
		if (score >= 1 && score <= 100) {
			if (score == 100) {
				alert('奖励BMW一台');
			}else if (score >= 80 && score <= 99) {
				alert('奖励吃鸡一小时');
			}else if (score < 80 && score >= 60) {
				alert('奖励5块钱');
			}else {
				alert('奖励棍子一根!');
			}
		}else {
			alert('请输入正确的数字(1-100)');
		}*/

		/*var mon = 1000;
		count = 0;
		while (mon <= 100000) {
			mon *= 1.05;
			count++;
		}
		alert(count);*/
		var com = Math.random() * 3+1 ;
		com1 = Math.floor(com);//向下取整
		//alert(com1);
		if (com1 == 1) {
			alert('石头');
		} else if (com1 == 2) {
			alert('剪刀');
		} else if (com1 == 3){
			alert('布');
		}else{
			alert('123');
		}
		
		
	</script>




</body>
</html>